PHP image proportional scaling SimpleImage usage and instance sharing. Example code: set the width and proportional scaling copy :? Phpinclude(simpleimage.php?##imagenewsimpleimage(###image-load(picture.jpg); $ image-resi Usage example:
Set width
Examples of Use methods:
Set width, equal scale
Copy CodeThe code is as follows:
Include (' simpleimage.php ');
$image = new SimpleImage ();
$image->load (' picture.jpg ');
$image->resizetowidth (250);
$image->save (' picture2.jpg ');? >
Set
This article mainly introduces PHP pictures, such as scaling class SimpleImage use methods and use of instance sharing, need friends can refer to the following Usage Example: Set width, proportional scaling code as follows: image = $new _image;
Php scaling image (proportional scaling based on width and height) example. Recommended a simple and practical image scaling tool SimpleImage, reference www. white-hat-web-design.co.ukblogresizing-images-with-php use method: set the width and height,
Php scaling image. How to use: set the width and height, and scale proportionally? Phpinclude(simpleimage.php?##imagenewsimpleimage(%%%%image-load(picture.jpg); $ image-resize (250,400); $ image-save (picture2. usage:
Set width and height, and
This article describes the function of adding watermarks to two images in php. For more information, see
There are two ways to change the image size.(1): The ImageCopyResized () function is valid in all GD versions, but its algorithm for scaling
Set the width and height, and scale proportionally; set the width and proportional scaling; set the height and proportional scaling; scale to 50% according to the scale; output directly to the screen after scaling, etc, the specific use of the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.